package com.quanquan.store.entity;

import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @ClassName:Notice
 * @Description:TODO
 * @Author:xiongjunbao
 * @Date:2019/4/1 15:05
 * @Version 1.0
 */
@Data
@Entity
@Table(name = "oo_notice")
public class Notice implements Serializable {

    @Id
    @Column(name = "id", unique = true, length = 64)
    private String id;

    /**
     * 发布时间
     */
    @Column(name = "create_time", length = 32)
    private String createTime;
    @Column(name = "update_time", length = 32)
    private String updateTime;

    /**
     * 开始显示时间
     */
    @Column(name = "start_time", length = 32)
    private String startTime;

    /**
     * 结束显示时间
     */
    @Column(name = "end_time", length = 32)
    private String endTime;
    /**
     * 公告标题
     */
    @Column(name = "title", length = 128)
    private String title;

    /**
     * 0 显示 1不显示
     */
    @Column(name = "status_show", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusShow;

    /**
     * 0 未删除 1删除
     */
    @Column(name = "status_remove", nullable = false, columnDefinition = "TINYINT default 0")
    private Integer statusRemove;

    /**
     * 公告内容
     */
    @Column(name = "text", columnDefinition = "text")
    private String text;

    /**
     * 排序凭证
     */
    @Column(name = "sort_order")
    private Integer sortOrder;

}
